#pragma once
#include "afxwin.h"
#include "Popup.h"

// PopupPropertiesDlg dialog

class PopupPropertiesDlg : public CDialog
{
	DECLARE_DYNAMIC(PopupPropertiesDlg)

public:
	PopupPropertiesDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~PopupPropertiesDlg();
	virtual BOOL validateDialog();

// Dialog Data
	enum { IDD = IDD_DIALOG_PROPERTIES };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	virtual void updateControlsForExtension(const CString & p_extension);
	CpopupApp *m_app;

	DECLARE_MESSAGE_MAP()
public:
	
	CString m_serverName;
	CString m_portNumber;
	CString m_userName;
	CString m_resourcePath;
	CString m_webBrowserPath;
	CString m_extension;
	CString m_applicationPath;
	CString m_applicationArgs;
	CString m_autoMode;
	CString m_autoModeDelay;
	CComboBox m_comboAutoMode;
	CComboBox m_cbExtension;
	CEdit m_editWebBrowserPath;
	CEdit m_editApplicationPath;
	CEdit m_editApplicationArgs;

public:
	afx_msg void OnBnClickedButtonBrowseRcFolder();
	afx_msg void OnBnClickedButtonBrowseInternetBrowser();
	afx_msg void OnBnClickedButtonBrowseApplication();
	afx_msg void OnCbnSelchangeComboExtension();
	afx_msg void OnCbnEditchangeComboExtension();
};
